package cn.appsys.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.appsys.pojo.AppInfo;
import cn.appsys.pojo.AppVersion;
import cn.appsys.pojo.DataDictionary;

public interface AppInfoDao {
	int pageCount(@Param("softwareName")String softwareName,
			@Param("status")int status,
			@Param("flatform")int flatform,
			@Param("categoryLevel1")int categoryLevel1,
			@Param("categoryLevel2")int categoryLevel2,
			@Param("categoryLevel3")int categoryLevel3);
	List<AppInfo> getAppInfos(@Param("softwareName")String softwareName,
			@Param("status")int status,
			@Param("flatform")int flatform,
			@Param("categoryLevel1")int categoryLevel1,
			@Param("categoryLevel2")int categoryLevel2,
			@Param("categoryLevel3")int categoryLevel3,
			@Param("pageIndex")int pageIndex,@Param("pageSize")int pageSize);
	int addAppInfo(AppInfo appInfo);
	int updateAppInfo(AppInfo appInfo);
	int updateVersion(AppVersion appVersion);
	AppInfo getById(int id);
	int deleteAppInfo(int id);
	int updateStatus(@Param("id")int id,@Param("valueId")int valueId);
	int updateOnOff(@Param("id")int id,@Param("typeNumber")int typeNumber,@Param("date")Date date);
	
}
